<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UpdateRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'name' => '',
            'sex' => 'in:1,2',
            'avatar' => '',
            'birth' => '',
        ];
    }

    public function attributes()
    {
        return [
            'name' => '姓名',
            'sex' => '性别',
            'avatar' => '头像',
            'birth' => '生日',
        ];
    }
}
